<!--
  #%L
  thinkbig-ui-operations-manager
  %%
  Copyright (C) 2017 ThinkBig Analytics
  %%
  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
  #L%
  -->

<h2 mat-dialog-title>Filter Help</h2>
  <mat-dialog-content  fxLayout="column">
    <mat-list>

      <mat-list-item >
        <h1 mat-line class="mat-display-1">Filter Syntax</h1>
      </mat-list-item>
      <mat-divider></mat-divider>

      <mat-list-item >
        <h4 mat-line>{{ '{'+'field'+'} ' + ' {'+'operator'+'} ' + ' {'+'value'+'}' }}</h4>
        <p  mat-line>'%' is used for a wildcard when using the '=~', LIKE, operator</p>
        <p  mat-line> If no field/operator is specified a LIKE filter on the job name will be performed</p>
      </mat-list-item>
      <mat-divider></mat-divider>

      <mat-list-item>
        <h1 mat-line class="mat-display-1">Filter Fields</h1>
      </mat-list-item>

      <ng-container *ngFor="let item of filterHelpFields">
        <mat-list-item>
        <h4 mat-line>{{item.displayName}}</h4>
        <p mat-line>{{ item.description}}</p>
        </mat-list-item>
        <mat-divider></mat-divider>
      </ng-container>

      <mat-list-item>
        <h1 mat-line class="mat-display-1">Filter Operators</h1>
      </mat-list-item>

      <ng-container *ngFor="let item of filterHelpOperators">
        <mat-list-item>
          <h4 mat-line>{{item.displayName}}</h4>
          <p mat-line>{{ item.description}}</p>
        </mat-list-item>
        <mat-divider></mat-divider>
      </ng-container>

      <mat-list-item>
        <h1 mat-line class="mat-display-1">Filter Examples</h1>
      </mat-list-item>

      <ng-container  *ngFor="let item of filterHelpExamples">
        <mat-list-item>
          <h4 mat-line>{{item.displayName}}</h4>
          <p mat-line>{{ item.description}}</p>
        </mat-list-item>
        <mat-divider></mat-divider>
      </ng-container>


    </mat-list>

  </mat-dialog-content>
<mat-dialog-actions>
  <span fxFlex></span>
  <button mat-button [mat-dialog-close]="true">Close</button>
</mat-dialog-actions>
